package com.gurid.service.edu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gurid.service.base.model.BaseEntity;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 评论
 * </p>
 *
 * @author Gurid
 * @since 2024-04-29
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("edu_comment")
@Schema(name = "Comment", description = "评论")
public class Comment extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "课程id")
    private String courseId;

    @Schema(description = "讲师id")
    private String teacherId;

    @Schema(description = "会员id")
    private String memberId;

    @Schema(description = "会员昵称")
    private String nickname;

    @Schema(description = "会员头像")
    private String avatar;

    @Schema(description = "评论内容")
    private String content;

    @Schema(description = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;
}
